using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Org.Loon.Framework.Xna.Game.Action.Scripting
{
    public class WithText : UserFunction
    {

        private string text;

        public WithText(string name, String text)
            : base(name)
        {

            this.text = text;
        }

        public override void Update(ScriptFactory engine, Stack<StackFrame> stack,
                Callback callback)
        {
            callback.Function(GetName(), text);
        }

    }
}
